package main

import (
	"fmt"
)

var m = make(map[string]int)

func main() {
	list := []string{"1", "2"}
	fmt.Println(k(list))
	Add(list)
	list[1] = "3"
	Add(list)
	fmt.Println(Count(list))

	for k, v := range m {
		fmt.Println(k, "=", v)
	}
}

func k(list []string) string {
	return fmt.Sprintf("%q", list)
}

func Add(list []string) {
	m[k(list)]++
}

func Count(list []string) int {
	return m[k(list)]
}
